//
//  GGTool.m
//  DDLock
//
//  Created by ios on 2017/12/26.
//  Copyright © 2017年 saiyi. All rights reserved.
//

#import "GGTool.h"

#import <CoreLocation/CoreLocation.h>

@interface GGTool ()
{
    CLLocationManager *_lManager;
}

@end

@implementation GGTool

static GGTool *_tool = nil;
+ (instancetype)shareTool {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _tool = [[GGTool alloc] init];
    });
    return _tool;
}

- (void)toolLocation {
    
    _lManager = [[CLLocationManager alloc] init];
    
    //  用户没有启用定位
    if (![CLLocationManager locationServicesEnabled]) {
        
    } else {
        
    }
    
}

+ (UINavigationController *)toolSelectedNavigationVC {
    
    UITabBarController *tab = (UITabBarController *)[UIApplication sharedApplication].keyWindow.rootViewController;
    return  tab.selectedViewController;
    
}


@end
